package ar.com.source.utilities;

import java.text.Collator;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

import ar.com.source.dominio.Empleado;

public class UtilitiesLista {

	
	
	@SuppressWarnings({ "unchecked", "rawtypes" })
	public static List ordenarLista(List lista){
		
		
		  Collections.sort(lista, new Comparator<Empleado>() {
		         

				@Override
				public int compare(Empleado o1, Empleado o2) {
					return Collator.getInstance().compare(o1.toString(), o2.toString());
					
				}
		     });

		
		return lista;
		
		
		
		
	}
	
	
	
}
